﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SedCup.Code.View.Components
{
    public partial class PanelWorkerMini : PanelWorker
    {
        public PanelWorkerMini()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Frissíti a panelt, hogy az új adatokat mutassa
        /// </summary>
        public override void UpdatePanel()
        {
            base.UpdatePanel();

            string tip = "";

            tip += "Név: " + this.WorkerName + "\r\n";
            switch (this.WorkerRank)
            {
                case Rank.JUNIOR:
                    tip += "Rang: Junior\r\n";
                    break;
                case Rank.SENIOR:
                    tip += "Rang: Senior\r\n";
                    break;
                case Rank.GURU:
                    tip += "Rang: Guru\r\n";
                    break;
            }
            tip += "Elvégzett feladatok: " + this.DoneTasks + "\r\n";
            tip += "Gyűjtött pontok: " + this.Score + " fb";

            this.toolTip.SetToolTip(this.labelName, tip);
            this.toolTip.SetToolTip(this, tip);
        }
    }
}
